﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class add_bomdetail : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_BomDesignDetails",
                table: "BomDesignDetails");

            migrationBuilder.AddPrimaryKey(
                name: "PK_BomDesignDetails",
                table: "BomDesignDetails",
                columns: new[] { "Id", "OrderNum" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_BomDesignDetails",
                table: "BomDesignDetails");

            migrationBuilder.AddPrimaryKey(
                name: "PK_BomDesignDetails",
                table: "BomDesignDetails",
                column: "Id");
        }
    }
}
